|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.If
public class If
The If class represents the <if> VXML element. An if
element specifies a conditional expression that determines whether or not the
actions it contains should be executed. It is also the container of the
secondary conditional elements: ElseIf and Else.
This construct follows the same rules as similar facilities of programming
languages such as Java&tm;.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
If(java.lang.String condition)
Creates a new instance of If with the specified conditional
expression. |
|
| Method Summary | |
|---|---|
void |
addAction(Action action)
Adds the action to this if. |
void |
addElseIf(ElseIf elseIf)
Adds the else-if element to the set of secondary conditionals to evaluate if this element's condition evaluates to false. |
Action[] |
getActions()
Returns the list of actions in this if. |
java.lang.String |
getCondition()
Returns the conditional expression that must evaluate to true. |
Else |
getElse()
Returns the final conditional in this if. |
ElseIf[] |
getElseIfs()
Returns the list of extra conditionals in this if. |
void |
removeAction(Action action)
Removes the action from this if. |
void |
removeElseIf(ElseIf elseIf)
Removes the else-if element from the set of secondary conditionals to evaluate if this element's condition evaluates to false. |
void |
setCondition(java.lang.String condition)
Sets the conditional expression that must evaluate to true. |
void |
setElse(Else elseClause)
Sets the else element to process if this element's condition and all secondary conditions evaluate to false. |
protected void |
writeActions(org.xml.sax.ContentHandler outputHandler)
Write the actions in this condition to the specified content handler. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this condition to the supplied set. |
protected void |
writeElse(org.xml.sax.ContentHandler outputHandler)
Write the else condition in this condition to the specified content handler. |
protected void |
writeElseIfs(org.xml.sax.ContentHandler outputHandler)
Write the else-if conditions in this condition to the specified content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public If(java.lang.String condition)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
If with the specified conditional
expression.
condition - A boolean expression.
java.lang.IllegalArgumentException - If the supplied condition is empty.
java.lang.NullPointerException - If the supplied condition is null.| Method Detail |
|---|
public java.lang.String getCondition()
public Action[] getActions()
public ElseIf[] getElseIfs()
public Else getElse()
public void setCondition(java.lang.String condition)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
condition - The conditional expression.
java.lang.IllegalArgumentException - If the supplied condition is empty.
java.lang.NullPointerException - If the supplied condition is null.
public void addAction(Action action)
throws java.lang.NullPointerException
action - The action to add.
java.lang.NullPointerException - If the supplied action is null.
public void removeAction(Action action)
throws java.lang.NullPointerException
action - The action to remove.
java.lang.NullPointerException - If the supplied action is null.public void addElseIf(ElseIf elseIf)
elseIf - The secondary condition to add.
java.lang.NullPointerException - If the supplied conditional is
null.public void removeElseIf(ElseIf elseIf)
elseIf - The secondary condition to remove.
java.lang.NullPointerException - If the supplied conditional is
null.public void setElse(Else elseClause)
elseClause - The element to process if all other conditions are not
satisfied.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeActions(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the actions fails.
protected void writeElseIfs(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the actions fails.
protected void writeElse(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the actions fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||